﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common;

namespace UI.Controllers
{
    public class TemplateController : Controller
    {
        // GET: Template
        public ActionResult Index()
        {
            var data = HttpHelper.HttpGet<Result<List<Param_TemplateClassify>>>(Tools.ApiPath+ "api/TemplateClassify/GetAll", "get").Data;
            var aa = HttpHelper.HttpGet<Result<List<Param_Template>>>(Tools.ApiPath+ "api/Template/GetAll", "get").Data;
            ViewBag.aa = aa;
            return View(data);
        }

        public ActionResult Shopping()
        {
            var aa = HttpHelper.HttpGet<Result<List<Param_Template>>>(Tools.ApiPath + "api/Template/GetAll", "get").Data;
            return View(aa);
        }

        public ActionResult Detail()
        {
            return View();
        }
    }
}